<template>
  <el-drawer
    :title="title"
    :modal-append-to-body="false"
    :modal="false"
    size="auto"
    :wrapperClosable="false"
    :visible.sync="isShow"
    direction="rtl"
    class="company-detail"
    >
    <div class="drawer-body">
      <el-scrollbar style="height:100%">
        <el-form size="small">
          <el-row :gutter="20">
            <el-col :xs="24">
              <h3 class="align-center">基本信息</h3>
            </el-col>
            <el-col :xs="24">
            <el-form-item label="污染源名称：" required>
              <el-input v-model="form.name" placeholder="请输入" />
            </el-form-item>
            </el-col>
            <el-col :xs="24" :sm="12">
            <el-form-item label="污染源类别：">
              <el-input v-model="form.class" placeholder="请输入" />
            </el-form-item>
            </el-col>
            <el-col :xs="24" :sm="12">
            <el-form-item label="统一社会信用代码：" required>
              <el-input v-model="form.capacity_num" placeholder="请输入" />
            </el-form-item>
            </el-col>
            <el-col :xs="24" :sm="12">
            <el-form-item label="最大容纳数：">
              <el-input v-model="form.capacity_num" placeholder="请输入" />
            </el-form-item>
            </el-col>
            <el-col :xs="24" :sm="12">
            <el-form-item label="企业联系人：">
              <el-input v-model="form.capacity_num" placeholder="请输入" />
            </el-form-item>
            </el-col>
            <el-col :xs="24" :sm="12">
            <el-form-item label="联系人电话：">
              <el-input v-model="form.capacity_num" placeholder="请输入" />
            </el-form-item>
            </el-col>
            <el-col :xs="24">
            <el-form-item label="企业地址：" required>
              <el-input v-model="form.capacity_num" placeholder="请输入" />
            </el-form-item>
            </el-col>
            <el-col :xs="24" :sm="12">
            <el-form-item label="经度[116-118]：" required>
              <el-input v-model="form.capacity_num" placeholder="请输入" />
            </el-form-item>
            </el-col>
            <el-col :xs="24" :sm="12">
            <el-form-item label="维度[23-24]：" required>
              <el-input v-model="form.capacity_num" placeholder="请输入" />
            </el-form-item>
            </el-col>
            <el-col :xs="24" :sm="12">
            <el-form-item label="所属区县：" required>
              <el-select v-model="form.capacity_num" placeholder="请输入">

              </el-select>
            </el-form-item>
            </el-col>
            <el-col :xs="24" :sm="12">
            <el-form-item label="所属镇街：">
              <el-input v-model="form.capacity_num" placeholder="请输入" />
            </el-form-item>
            </el-col>
            <el-col :xs="24" :sm="12">
            <el-form-item label="国民经济行业类型（2级）：">
              <el-input v-model="form.capacity_num" placeholder="请输入" disabled />
            </el-form-item>
            </el-col>
            <el-col :xs="24" :sm="12">
            <el-form-item label="国民经济行业代码（2级）：">
              <el-input v-model="form.capacity_num" placeholder="请输入" disabled />
            </el-form-item>
            </el-col>
            <el-col :xs="24" :sm="12">
            <el-form-item label="国民经济行业类型（4级）：">
              <el-select v-model="form.capacity_num" placeholder="请输入">

              </el-select>
            </el-form-item>
            </el-col>
            <el-col :xs="24" :sm="12">
            <el-form-item label="国民经济行业代码（4级）：">
              <el-input v-model="form.capacity_num" placeholder="请输入" disabled />
            </el-form-item>
            </el-col>
            <el-col :xs="24">
              <h3 class="align-center">排放信息</h3>
            </el-col>
            <el-col :xs="24" :sm="12">
            <el-form-item label="VOCs绩效等级：">
              <el-input v-model="form.capacity_num" placeholder="请输入" />
            </el-form-item>
            </el-col>
            <el-col :xs="24">
            <el-form-item label="窑炉绩效等级：">
              <el-input v-model="form.capacity_num" placeholder="请输入" />
            </el-form-item>
            </el-col>
            <el-col :xs="24" :sm="12">
            <el-form-item label="企业类型：">
              <el-input v-model="form.capacity_num" placeholder="请输入" />
            </el-form-item>
            </el-col>
            <el-col :xs="24">
            <el-form-item label="集气方式：">
              <el-input v-model="form.capacity_num" placeholder="请输入" />
            </el-form-item>
            </el-col>
            <el-col :xs="24" :sm="12">
            <el-form-item label="脱硫工艺：">
              <el-input v-model="form.capacity_num" placeholder="请输入" />
            </el-form-item>
            </el-col>
            <el-col :xs="24">
            <el-form-item label="脱硝工艺：">
              <el-input v-model="form.capacity_num" placeholder="请输入" />
            </el-form-item>
            </el-col>
            <el-col :xs="24" :sm="12">
            <el-form-item label="除尘工艺：">
              <el-input v-model="form.capacity_num" placeholder="请输入" />
            </el-form-item>
            </el-col>
            <el-col :xs="24">
            <el-form-item label="除VOCs工艺：">
              <el-input v-model="form.capacity_num" placeholder="请输入" />
            </el-form-item>
            </el-col>
            <el-col :xs="24" :sm="12">
            <el-form-item label="VOCs工艺：">
              <el-input v-model="form.capacity_num" placeholder="请输入" />
            </el-form-item>
            </el-col>
            <el-col :xs="24">
            <el-form-item label="VOCs工艺/生产线的数量：">
              <el-input v-model="form.capacity_num" placeholder="请输入" />
            </el-form-item>
            </el-col>
            <el-col :xs="24" :sm="12">
            <el-form-item label="炉窑/锅炉的规模（t/h）：">
              <el-input v-model="form.capacity_num" placeholder="请输入" />
            </el-form-item>
            </el-col>
            <el-col :xs="24">
            <el-form-item label="炉窑/锅炉的数量：">
              <el-input v-model="form.capacity_num" placeholder="请输入" />
            </el-form-item>
            </el-col>
            <el-col :xs="24">
            <el-form-item label="VOCs工艺/生产线的数量：">
              <el-input v-model="form.capacity_num" placeholder="请输入" />
            </el-form-item>
            </el-col>
            <el-col :xs="24" :sm="12">
            <el-form-item label="烟高度（m）：">
              <el-input v-model="form.capacity_num" placeholder="请输入" />
            </el-form-item>
            </el-col>
            <el-col :xs="24">
            <el-form-item label="烟直径（m）：">
              <el-input v-model="form.capacity_num" placeholder="请输入" />
            </el-form-item>
            </el-col>
            <el-col :xs="24">
            <el-form-item label="SO₂年排放量（顿）：">
              <el-input v-model="form.capacity_num" placeholder="请输入" />
            </el-form-item>
            </el-col>
            <el-col :xs="24" :sm="12">
            <el-form-item label="NOx年排放量（顿）：">
              <el-input v-model="form.capacity_num" placeholder="请输入" />
            </el-form-item>
            </el-col>
            <el-col :xs="24">
            <el-form-item label="VOCs年排放量（顿）：">
              <el-input v-model="form.capacity_num" placeholder="请输入" />
            </el-form-item>
            </el-col>
            <el-col :xs="24">
            <el-form-item label="PM₁₀年排放量（顿）：">
              <el-input v-model="form.capacity_num" placeholder="请输入" />
            </el-form-item>
            </el-col>
            <el-col :xs="24" :sm="12">
            <el-form-item label="PM₂.₅年排放量（顿）：">
              <el-input v-model="form.capacity_num" placeholder="请输入" />
            </el-form-item>
            </el-col>
          </el-row>
        </el-form>
      </el-scrollbar>
    </div>
    <div class="btn-group align-center p-a-14">
      <el-button size="small" @click="isShow = false">取消</el-button>
      <el-button :loading="btnLoading" size="small" type="primary" @click="submitForm">保存</el-button>
    </div>
  </el-drawer>
</template>
<script>
export default {
  props:{
    
  },
  data(){
    return {
      isShow: false,
      title: null,
      btnLoading: false,
      params: null,
      form:{

      }
    }
  },
  methods:{
    init(params){
      this.isShow = true;
      console.log(params);
      this.params = JSON.parse(JSON.stringify(params));
      this.form = JSON.parse(JSON.stringify(params));
      this.title = params.name;
      
    },
    submitForm(){

    },
  }
}
</script>